<script setup lang="ts"></script>

<template>
</template>

<style>
/* 登录/注册页面容器 */
.auth-page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: 60px;
  position: relative;
  z-index: 1;
}

/* 登录/注册卡片 */
.auth-card {
  width: 100%;
  max-width: 400px;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 2rem;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(0,0,0,.1);
  position: relative;
}

/* 卡片标题 */
.auth-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.8rem;
}

/* 表单组 */
.form-group {
  margin-bottom: 1.5rem;
}

/* 表单标签 */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #333;
}

/* 表单输入框 */
.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 3px 3px 0 rgba(99, 102, 241, 0.2);
}

/* 错误/成功提示 */
.error-msg {
  color: #e53935;
  text-align: center;
  margin: 1rem 0;
  height: 1.4rem;
  line-height: 1.4rem;
  animation: shake 0.3s ease;
}
.success-msg {
  color: #22c55e;
  text-align: center;
  margin: 1rem 0;
  height: 1.2rem;
  font-weight: 500;
}

/* 按钮组 */
.auth-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* 基础按钮 */
.auth-btn {
  padding: 0.8rem;
  border: 2px solid #333;
  border-radius: 4px;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 3px 3px 0 rgba(0,0,0,.1);
}

/* 主按钮（登录/注册） */
.auth-btn.primary {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

/* 页面切换文字 */
.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* 页面切换链接 */
.auth-link {
  border: none;
  background: transparent;
  color: #6366f1;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-link:hover {
  transform: none;
  box-shadow: none;
  color: #4f46e5;
}

/* 卡片图标 */
.auth-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: #6366f1;
}

/* 背景装饰元素 */
.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.bg-decoration .dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed #6366f1;
}
.bg-decoration .dot:nth-child(1) { top: 15%; left: 10%; }
.bg-decoration .dot:nth-child(2) { top: 70%; left: 85%; }
.bg-decoration .dot:nth-child(3) { top: 40%; left: 90%; }
.bg-decoration .line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(99,102,241,0.2), rgba(99,102,241,0));
}
.bg-decoration .line:nth-child(4) { top: 25%; left: 5%; width: 200px; transform: rotate(-15deg); }
.bg-decoration .line:nth-child(5) { top: 60%; left: 70%; width: 150px; transform: rotate(30deg); }

/* 按钮hover效果 */
.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,.15);
}
</style>